import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/global.css'
import './assets/fonts/iconfont.css'
import ZkTable from 'vue-table-with-tree-grid'

import VueQuillEditor from 'vue-quill-editor'


Vue.use(VueQuillEditor, /* { default global options } */)
Vue.component('tree-table',ZkTable)
// Vue.use(ElementUI)
Vue.config.productionTip = false
//格式化时间
Vue.filter('dataFormat',function(time){
  const dt=new Date(time*1000)
  // console.log(dt);
  const y=dt.getFullYear()
  const m=(dt.getMonth()+1 + '').padStart(2,'0')
  const d=(dt.getDay()+'').padStart(2,'0')
  const hh=(dt.getHours()+'').padStart(2,'0')
  const mm=(dt.getMinutes()+'').padStart(2,'0')
  const ss=(dt.getSeconds()+'').padStart(2,'0')
  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
